local skynet = require 'skynet'
require 'skynet.manager'

local Base = require 'lesson4.base'

skynet.error('lesson4 started')

skynet.start(
    function()
        skynet.timeout(
            300,
            function()
                skynet.error('lesson4 end')
                skynet.sleep(0)
                skynet.abort()
            end
        )

        local b = Base.New(1, 2)
        b.foo()
        b.bar()
    end
)
